package com.wasu.entity.live;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * <p>------------------------------------------------------
 * <p>Copyright (C) 2020 wasu company, All rights reserved.
 * <p>------------------------------------------------------
 * <p> 保存DVB模式下，直播播放频点等相关信息
 * <p>
 *
 * @author Created by zhangmz
 * @date on 2024/1/6
 */
public class WasuDvbLiveUrl implements Parcelable {

    /**
     * 业务ID
     */
    private String sId;
    /**
     * 传输流ID
     */
    private String tsId;
    /**
     * 符号率
     */
    private String rate;
    /**
     * 调制方式
     */
    private String mod;
    /**
     * 频点
     */
    private String freq;
    /**
     * 授权ID
     */
    private String capId;
    /**
     * CA厂商
     */
    private String caIds;

    public WasuDvbLiveUrl(){

    }

    public WasuDvbLiveUrl(String sId, String tsId, String rate, String mod, String freq, String capId, String caIds) {
        this.sId = sId;
        this.tsId = tsId;
        this.rate = rate;
        this.mod = mod;
        this.freq = freq;
        this.capId = capId;
        this.caIds = caIds;
    }

    protected WasuDvbLiveUrl(Parcel in) {
        sId = in.readString();
        tsId = in.readString();
        rate = in.readString();
        mod = in.readString();
        freq = in.readString();
        capId = in.readString();
        caIds = in.readString();
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(sId);
        dest.writeString(tsId);
        dest.writeString(rate);
        dest.writeString(mod);
        dest.writeString(freq);
        dest.writeString(capId);
        dest.writeString(caIds);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<WasuDvbLiveUrl> CREATOR = new Creator<WasuDvbLiveUrl>() {
        @Override
        public WasuDvbLiveUrl createFromParcel(Parcel in) {
            return new WasuDvbLiveUrl(in);
        }

        @Override
        public WasuDvbLiveUrl[] newArray(int size) {
            return new WasuDvbLiveUrl[size];
        }
    };

    public String getsId() {
        return sId;
    }

    public void setsId(String sId) {
        this.sId = sId;
    }

    public String getTsId() {
        return tsId;
    }

    public void setTsId(String tsId) {
        this.tsId = tsId;
    }

    public String getRate() {
        return rate;
    }

    public void setRate(String rate) {
        this.rate = rate;
    }

    public String getMod() {
        return mod;
    }

    public void setMod(String mod) {
        this.mod = mod;
    }

    public String getFreq() {
        return freq;
    }

    public void setFreq(String freq) {
        this.freq = freq;
    }

    public String getCapId() {
        return capId;
    }

    public void setCapId(String capId) {
        this.capId = capId;
    }

    public String getCaIds() {
        return caIds;
    }

    public void setCaIds(String caIds) {
        this.caIds = caIds;
    }

    @Override
    public String toString() {
        return "WasuDvbLiveUrl{" +
                "sId='" + sId + '\'' +
                ", tsId='" + tsId + '\'' +
                ", rate='" + rate + '\'' +
                ", mod='" + mod + '\'' +
                ", freq='" + freq + '\'' +
                ", capId='" + capId + '\'' +
                ", caIds='" + caIds + '\'' +
                '}';
    }
}
